<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        <h3>单选</h3>
        <select v-model="fruit1">
            <option disabled value="">请选择您想要吃的水果</option>
            <option>苹果</option>
            <option>香蕉</option>
            <option>橘子</option>
        </select>
        <p>您想吃的水果是:{{fruit1}}</p>
        <br/>
        <h3>多选</h3>
        <select v-model="fruits" multiple>
            <option>苹果</option>
            <option>香蕉</option>
            <option>橘子</option>
        </select>
        <p>您想吃的水果有:{{fruits}}</p>
    </div>
</body>
<script>
    const vm=new Vue({
        el:"#app",
        data:{
            fruit1:"",
            fruits:[]
        }
    })
</script>
</html>